<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>VueDemo3</title>
    <script src="js/vue.js"></script>
    <script>
        window.onload =function(){
            var vm = new Vue({
                el:'#app',
                data:{
                    arr:[1,2,3,4,5,6,7],
                    user:{id:1232,name:'limeng',are:34}
                }
            })
        }
    </script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for = "value in arr">
                <span v-text = "value"></span>
            </li>
            <li v-for="(v,k) in user" :key="k">
                <span>{{k}}={{v}}</span>
            </li>
        </ul>
    </div>
</body>
</html>